#ifndef PLAYER_HPP
#define PLAYER_HPP

#include <SFML/Graphics/Image.hpp>
#include <SFML/Graphics/Sprite.hpp>
#include <SFML/Graphics/RenderTarget.hpp>
#include "imageManager.hpp"
#include <string>
#include "GameObject.hpp"

class DialogBar : public GameObject
{
	public:
		DialogBar();
		DialogBar(  int maxValue,
                    const std::string& frontImgLink,
                    const std::string& backImgLink,
                    float period = 0.1f);
		virtual ~DialogBar();

		void update(float dt);
		void show(sf::RenderTarget& wdw) const;

		void addToValue(int value);
		void substractToValue(int value);
		void setValue(int value);

	private:
		sf::Sprite m_frontSkin;
		sf::Sprite m_backSkin;
		sf::Shape m_mask;

        float m_elapsedTime;
		float m_period;
		int m_value;
		int m_maxValue;
};

#endif
